package com.springinaction.springidol;

/**
 * 杂技师
 * 使用构造器注入
 * @time 2014年11月25日09:35:25
 * @author xupeng
 *
 */
public class Jugger implements Performer {
	
	private int beanBags = 3;
	
	/** 默认构造器*/
	public Jugger() {}

	/** 有参数的构造器*/
	public Jugger(int beanBags) {
		this.beanBags = beanBags;
	}

	@Override
	public void perform() throws PerformanceException {
		System.out.println("JUGGLING " + beanBags + " BEANBAGS");
	}

}
